package com.lb.design.pattern.decorator.v2;

/**
 * @author lb
 * @Title: EggDecorator
 * @Description: TODO
 * @date 2019/03/19  17:09
 */
public class EggDecorator extends BattercakeDecorator {
    public EggDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getBattercake() {
        return super.getBattercake()+"一个鸡蛋";
    }

    @Override
    protected int getPrice() {
        return super.getPrice()+2;
    }
}
